import { mpHttp } from '@/utils/request'

// 获得自营商品门票详情
export function getSelfProduct(uid) {
  return mpHttp({
    url: `/front/api/v1/product/self-product/${uid}`,
    method: 'get'
  })
}
// 获得可出行日期
export function getSelfProductPackage(uid) {
  return mpHttp({
    url: `/front/api/v1/product/self-product/package/${uid}`,
    method: 'get'
  })
}
// 获得可出行日期
export function getSelfDetails(packageUid, date) {
  return mpHttp({
    url: `/front/api/v1/product/self-product/package/${packageUid}/details?date=${date}`,
    method: 'get'
  })
}
// 下单
export function getSelfOrder(data) {
  return mpHttp({
    url: `/front/api/v1/place/self-order`,
    method: 'post',
    data: data
  })
}
// 订单列表
export function getSelfOrderList(data) {
  return mpHttp({
    url: `/front/api/v1/order/self`,
    method: 'get',
    data: data
  })
}
export function getOrderDetails(uid) {
  return mpHttp({
    url: `/front/api/v1/order/self/${uid}`,
    method: 'get'
  })
}

